package com.wms.goods_stock_view.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wms.goods_stock_view.mapper.GoodsStockViewMapper;
import com.wms.goods_stock_view.domain.GoodsStockView;
import com.wms.goods_stock_view.service.IGoodsStockViewService;

/**
 * VIEWService业务层处理
 * 
 * @author 熊竹俊
 * @date 2025-01-16
 */
@Service
public class GoodsStockViewServiceImpl implements IGoodsStockViewService 
{
    @Autowired
    private GoodsStockViewMapper goodsStockViewMapper;

    /**
     * 查询VIEW
     * 
     * @param goodsId VIEW主键
     * @return VIEW
     */
    @Override
    public GoodsStockView selectGoodsStockViewByGoodsId(Long goodsId)
    {
        return goodsStockViewMapper.selectGoodsStockViewByGoodsId(goodsId);
    }

    /**
     * 查询VIEW列表
     * 
     * @param goodsStockView VIEW
     * @return VIEW
     */
    @Override
    public List<GoodsStockView> selectGoodsStockViewList(GoodsStockView goodsStockView)
    {
        return goodsStockViewMapper.selectGoodsStockViewList(goodsStockView);
    }

    /**
     * 新增VIEW
     * 
     * @param goodsStockView VIEW
     * @return 结果
     */
    @Override
    public int insertGoodsStockView(GoodsStockView goodsStockView)
    {
        return goodsStockViewMapper.insertGoodsStockView(goodsStockView);
    }

    /**
     * 修改VIEW
     * 
     * @param goodsStockView VIEW
     * @return 结果
     */
    @Override
    public int updateGoodsStockView(GoodsStockView goodsStockView)
    {
        return goodsStockViewMapper.updateGoodsStockView(goodsStockView);
    }

    /**
     * 批量删除VIEW
     * 
     * @param goodsIds 需要删除的VIEW主键
     * @return 结果
     */
    @Override
    public int deleteGoodsStockViewByGoodsIds(Long[] goodsIds)
    {
        return goodsStockViewMapper.deleteGoodsStockViewByGoodsIds(goodsIds);
    }

    /**
     * 删除VIEW信息
     * 
     * @param goodsId VIEW主键
     * @return 结果
     */
    @Override
    public int deleteGoodsStockViewByGoodsId(Long goodsId)
    {
        return goodsStockViewMapper.deleteGoodsStockViewByGoodsId(goodsId);
    }
}
